package com.fengyi.homefurnish.mapper;

import com.fengyi.homefurnish.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsBasicInfoMapper {

    /**
     * 查询全部商品信息
     */
    public List<GoodsBasicInfo> search(@Param("offset")Integer offset, @Param("limit")Integer limit);

    /**
     * 查询总条数
     */
    public int total();

    /**
     * 修改商品状态
     */
    public void updateGoodsState(@Param("goodsBasicInfo") GoodsBasicInfo goodsBasicInfo);

    /**
     * 查看商品详情
     */
    public GoodsBasicInfo GetSearch(@Param("goodsBasicInfoId") Integer goodsBasicInfoId);

    /**
     * 查看所有产品系列(一级)
     */
    public List<ProSeries> proseries1();

    /**
     * 查看所有产品系列(二级)
     */
    public List<ProSeries> proseries2(@Param("proSeriesPid") Integer proSeriesPid);

    /**
     * 商品属性名(一级)
     */
    public List<ProAttrName> proAttrName();

    /**
     * 商品属性值(二级)
     */
    public List<ProAttrValue> proAttrValue(@Param("proAttrNameId") Integer proAttrNameId);

    /**
     * 商品价格类型
     */
    public List<GoodsPriceType> GetGoodsPriceType();

    /**
     * 查看商品所属图片
     */
    public List<GoodsPictureManager> GetGoodsPictureManager(@Param("goodsBasicInfoId") Integer goodsBasicInfoId);



}
